package com.yfqy.admin.constant;

import java.util.ArrayList;
import java.util.List;

public class MyConstants {

    public static final int IT0 = 0;
    public static final int IT1 = 1;

    /**
     *
     */
    public static final byte BT0 = 0;
    public static final byte BT1 = 1;
    public static final byte BT2 = 2;
    public static final byte BT3 = 3;

    public static final String EMAIL_REGEX = "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+$";

    public static final Long L0 = 0L;
    public static final Long L1 = 1L;
    public static final Long L10 = 10L;
    public static final Long L12 = 12L;
    public static final Long _L1 = -1L;

    public static final String CHARSET_UTF8 = "application/json;charset=UTF-8";

    /**
     * 客户端接口url正则
     */
    public static final String CUSTOMER_URL_PATTEN = "^/api/consumer(/[^/]+)*/?";
    public static final String PUBLIC_URL_PATTEN = "^/api/noauth(/[^/]+)*/?";

    /**
     * 管理后台接口url正则
     */
    public static final String INTERNAL_URL_PATTEN = "^/api/internal(/[^/]+)*/?";

    public static final List<String> DISPLAY_MENU_ROUT = new ArrayList<>() {{
        add("/order-detail");
        add("/product-detail");
    }};

    public static final String SYS_USER_TOKEN = "system:user:id:%s";
}
